package designPatterns.factory;
/**
*@author created by zhanxianbo
*@date 2017年10月31日--上午9:34:53
*/
public class test {
	public static void main(String[] args) {
		
		Factory factory=new Factory();		
		Shap shap = factory.getShap("cicle");
		shap.draw();
		Shap shap1 = factory.getShap("squary");
		shap1.draw();
		Shap shap2 = factory.getShap("Rectangle");
		shap2.draw();
	}

}


